<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
<script type="text/javascript">
function changeText() {
	choosenValue = document.getElementById("select_loaixe").value;
	textBox = document.getElementById("textbox");
	textBox.value = choosenValue;
}
</script>
</head>
<body>
<form>
<select name="loaixe" id="select_loaixe" onchange="changeText()">
	<option value="0"> Gia tri 0</option>
	<option value="1"> Gia tri 1</option>
</select>
<input type = "text" id="textbox" value="default"></input>
</form>
</body>
</html>